#include "configManager.h"


configManager::configManager() {

    /*************
     ** TODO
     ** 0: Nothing
     ** 1: show login window
     **
     *****/


    todo = 0;
}

configManager::~configManager() {
    //dtor
}


void configManager::Load(string pPath) {

    XMLNode xMainNode=XMLNode::openFileHelper(pPath.c_str(),"PMML" );

    gameName      = "StarRaidNG - Client";
    gameVersion   = "0.1a";
    gameWidth     = atoi( xMainNode.getChildNode("resolution").getAttribute("width") );
    gameHeight    = atoi( xMainNode.getChildNode("resolution").getAttribute("heigth") );
    if(atoi(xMainNode.getChildNode("resolution").getAttribute("fullscreen"))==1) gameFullscreen = 1;
    else gameFullscreen = 0;

}
